﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	SqlEntity.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Security;

namespace Smart.Common.Entities
{
	/// <summary>
	/// SQL entity base
	/// </summary>
	[Entity("SqlEntity")]
	public class SqlEntity : Entity, ISqlEntity
	{
		/// <summary>
		/// Securable type
		/// </summary>
		public override SecurableType SecurableType
		{
			get { return SqlSecurableType.Instance; }
		}

		/// <summary>
		/// Return SQL item
		/// </summary>
		public virtual SqlItem GetItem()
		{
			return (SqlItem)GetSource();
		}
	}
}